package com.gm.dao.user;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.gm.model.po.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by yangxing on 2017/6/8.
 */
public interface IUserDao {

    int insert(User record);

    int updateByPrimaryKey(User record);
    int updateByPrimaryKeySelective(User record);

    User selectByPrimaryKey(Integer id);
    User selectByUserName(@Param("username")String username);
    User selectByUserNameAndPwd(@Param("username")String username, @Param("pwd")String pwd);
    List getUserList(@Param("pageBounds") PageBounds pageBounds);
}
